package com.example.pluto.common.exceptions;


import com.example.pluto.common.enums.EnumException;

public class ServiceException extends BaseException {

    public ServiceException(String msg) {
        super(msg);
        super.code = 500;
    }

    public ServiceException(String msg, int code) {
        super(msg);
        super.code = code;
    }

    public ServiceException(EnumException em) {
        super(em.getMessage());
        super.code = em.getCode();
    }
}
